<script setup lang='ts'>
import {computed, PropType} from 'vue'
import {HeaderData} from '@/components/dTable/dTable'
const props = defineProps({
  row:{
    type:Object as PropType<any>,
    required:true
  },
  col:{
    type:Object as PropType<HeaderData>,
    required:true
  }
})
const rows = computed(() => {
  return props.row
})
const cols = computed(() => {
  return props.col
})
</script>

<template>
  <div class="d-common-flex-col" :style="{justifyContent:'flexStart'}">
    <el-form-item label="得分：">
      <el-input v-model="rows[cols.prop].code" :disabled="true" />
    </el-form-item>
    <el-radio-group v-model="rows[cols.prop].type" class="d-common-flex-col" :disabled="true">
      <el-radio :label="1" size="large">
        是
      </el-radio>
      <el-radio :label="2" size="large">
        {{ cols.prop!=='peacefulQuality'?'倾向是':'基本是' }}
      </el-radio>
      <el-radio :label="3" size="large">
        否
      </el-radio>
    </el-radio-group>
  </div>
</template>